package com.example.service;

import com.example.common.Result;
import com.example.pojo.User;

import java.util.List;

public interface UserService {
    public int add(User user);

    public void delete(String username);

    public User get(String username);

    public int update(User user);

    List<User> list();

    public void updateImg(User user);

    public void updateSignature(User user);

    public void updateGender(User user);

    public User getUserPermission(User user);
    public void background(User user);
    /**
     * 生成验证码
     */
    Result generateAuthCode(String telephone);

    /**
     * 判断验证码和手机号码是否匹配
     */
    Result verifyAuthCode(String telephone, String authCode);
}
